<div class="wrapper wrapper-content animated fadeIn" ng-controller="afterloadingCtrl">
  <div class="row">
    <div class="col-lg-12">
      <div class="ibox float-e-margins">
        <div class="ibox-content">
          <div id="afterloading" class="row" print-section>
            <div class="col-lg-12  col-md-12 col-sm-12 col-xs-12 row">
              <div class="col-lg-6 col-md-6 col-sm-6 col-xs-6" style="margin-top:30px;">
                <img height="80px;width:100px;" src="assets/images/validate/logo.png">
              </div>
            </div>
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 row">
              <h1 class="col-lg-6 col-md-6 col-sm-6 col-xs-8 col-lg-offset-4 col-md-offset-4 col-sm-offset-4 col-xs-offset-3">腔内近距离治疗申请单(首次)</h1>
            </div>
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
              <div class="row ibox-content">
                <div class="row">
                  <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
                    <span>病案号</span>
                    <input type="text" ng-model="form.caseNum">
                  </div>
                  <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
                    <span>姓名</span>
                    <input type="text" ng-model="form.patientName">
                  </div>
                  <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4" print-remove>
                    <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
                      <span>性别</span>
                    </div>
                    <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
                      <div class="radio">
                        <input type="radio" name="gender" ng-value="1" ng-model="form.gender" id="male"><label for="male">男</label>
                      </div>
                    </div>
                    <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3">
                      <div class="radio">
                        <input type="radio" name="gender" ng-value="2" ng-model="form.gender" id="female"><label for="female">女</label>
                      </div>
                    </div>
                  </div>
                  <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4" print-only>
                    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                      <span>性别:&nbsp;{{form.gender | getGender:form.gender}}</span>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
                    <span>病区</span>
                    <input type="text" ng-model="form.areaNum">
                  </div>
                  <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
                    <span>床号</span>
                    <input type="text" ng-model="form.bedNum">
                  </div>
                  <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4">
                    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                      <span>年龄</span>
                      <input type="text" ng-model="form.age">
                    </div>
                  </div>
              </div>
            </div>
            <div class="row ibox-content">
              <div id="clinicalArea" class="row">
                  <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 ">
                    <span>诊断</span>
                  </div>
                  <div class="col-lg-10 col-md-10 col-sm-10 col-xs-10 ">
                    <input type="text" ng-model="form.clinical" style="width: 100%;">
                  </div>
              </div>
              <div class="row">
                  <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 ">
                    <span>病种</span>
                  </div>
                  <div class="col-lg-10 col-md-10 col-sm-10 col-xs-10 ">
                    <input type="text" ng-model="form.entity" style="width: 100%;">
                  </div>
              </div>
              <div class="row">
                  <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 ">
                    <span>病理类型</span>
                  </div>
                  <div class="col-lg-10 col-md-10 col-sm-10 col-xs-10 ">
                    <input type="text" ng-model="form.pathologicType" style="width: 100%;">
                  </div>
              </div>
              <div class="row">
                  <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 ">
                    <span>分期</span>
                  </div>
                  <div class="col-lg-10 col-md-10 col-sm-10 col-xs-10 ">
                    <input type="text" ng-model="form.installment" style="width: 100%;">
                  </div>
              </div>
              <div class="row">
                <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                  <span>放疗方式</span>
                </div>
                <div id="treatWay" class="col-lg-10 col-md-10 col-sm-10 col-xs-10 ">
                  <div  class="col-lg-2 col-md-2 col-sm-2 col-xs-2 " ng-repeat="way in treatWay">
                    <div class="radio">
                      <input type="radio" name="{{way.groupid}}" ng-model="way.id" id="{{way.name}}"><label for="{{way.name}}">{{way.text}}</label>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="row ">
              <table class="col-lg-12 col-md-12 col-sm-12 col-xs-12 table">
                <tbody>
                <tr>
                  <td class="col-lg-6 col-md-6 col-sm-6 col-xs-6" style="border-top: 1px solid black;">
                    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 row">
                      <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                        <span>治疗技术</span>
                      </div>
                      <div class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
                        <div  class="col-lg-4 col-md-4 col-sm-4 col-xs-4" ng-repeat="tech in treatTechnology |limitTo:3 " style="padding: 0;">
                          <div class="radio">
                            <input type="radio" name="{{tech.groupid}}" ng-model="tech.id" id="{{tech.name}}"><label for="{{tech.name}}">{{tech.text}}</label>
                          </div>
                        </div>
                      </div>
                    </div>
                  </td>
                  <td class="col-lg-3 col-md-3 col-sm-3 col-xs-3 border">
                        <div  class="col-lg-12 col-md-12 col-sm-12 col-xs-12" ng-repeat="tech in treatTechnology2">
                          <div class="radio">
                            <input type="radio" name="{{tech.groupid}}" ng-model="tech.id" id="{{tech.name}}"><label for="{{tech.name}}">{{tech.text}}</label>
                          </div>
                        </div>
                  </td>
                  <td class="col-lg-3 col-md-3 col-sm-3 col-xs-3 border">
                      <div  class="col-lg-12 col-md-12 col-sm-12 col-xs-12" ng-repeat="tech in treatTechnology3" style="padding-right: 0;padding-left: 5px;">
                        <div class="radio">
                          <input type="radio" name="{{tech.groupid}}" ng-model="tech.id" id="{{tech.name}}"><label for="{{tech.name}}">{{tech.text}}</label>
                        </div>
                      </div>
                  </td>
                </tr>
                <tr>
                  <td class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
                    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 row">
                      <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                        <span>图像引导</span>
                      </div>
                      <div class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
                        <div  class="col-lg-4 col-md-4 col-sm-4 col-xs-4" ng-repeat="guide in imageGuide |limitTo:2 "  style="padding: 0;">
                          <div class="checkbox">
                            <input type="checkbox" ng-model="guide.id" id="{{guide.name}}"><label for="{{guide.name}}">{{guide.text}}</label>
                          </div>
                        </div>
                      </div>
                    </div>
                  </td>
                  <td class="col-lg-3 col-md-3 col-sm-3 col-xs-3 border">
                    <div  class="col-lg-6 col-md-6 col-sm-6 col-xs-6" ng-repeat="guide in imageGuide2">
                      <div class="checkbox">
                        <input type="checkbox" ng-model="guide.id" id="{{guide.name}}"><label for="{{guide.name}}">{{guide.text}}</label>
                      </div>
                    </div>
                  </td>
                  <td class="col-lg-3 col-md-3 col-sm-3 col-xs-3 border">
                    <div  class="col-lg-4 col-md-4 col-sm-4 col-xs-4" ng-repeat="guide in imageGuide3" style="padding-right: 0;padding-left: 5px;">
                      <div class="checkbox">
                        <input type="checkbox"  ng-model="guide.id" id="{{guide.name}}"><label for="{{guide.name}}">{{guide.text}}</label>
                      </div>
                    </div>
                  </td>
                </tr>

                </tbody>
              </table>
            </div>
            <div class="row ">
              <table class="col-lg-12 col-md-12 col-sm-12 col-xs-12 table">
                <tr>
                  <td class="col-lg-1 col-md-1 col-sm-1 col-xs-1 tdCenter">
                    照<br>射<br>施<br>源<br>器
                  </td>
                  <td class="col-lg-11 col-md-11 col-sm-11 col-xs-11"  style="border: none;">
                    <table class="col-lg-12 col-md-12 col-sm-12 col-xs-12 table">
                      <tr ng-repeat="applicator in radiationApplicator">
                        <td class="col-lg-2 col-md-2 col-sm-2 col-xs-2 radioLeft">
                          <div class="radio">
                            <input type="radio" name="{{applicator.groupid}}" ng-model="applicator.id" id="{{applicator.name}}"><label for="{{applicator.name}}">{{applicator.text}}</label>
                          </div>
                        </td>
                        <td class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
                          <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 rowHeight" ng-repeat="pro in applicator.project">
                            <div class="row">
                              <div class="col-lg-2 col-md-2 col-sm-2 col-xs-3">
                                <span>{{pro.text}}</span>
                              </div>
                              <div class="col-lg-10 col-md-10 col-sm-10 col-xs-9">
                                <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3" ng-repeat=" option in  pro.options">
                                  <div class="radio">
                                    <input type="radio" name="{{applicator.name}}{{pro.name}}" ng-model="option.id" id="{{option.name}}"><label for="{{option.name}}">{{option.text}}</label>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </div>
            <div class="row ibox-content">
              <div class="row">
                <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 ">
                  <span>处方剂量</span>
                </div>
                <div class="col-lg-10 col-md-10 col-sm-10 col-xs-10 ">
                  <input type="text" ng-model="dose" style="width: 50%;">
                </div>
              </div>
              <div class="row">
                <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                  <span>照射参考点</span>
                </div>
                <div class="col-lg-10 col-md-10 col-sm-10 col-xs-10">
                  <div  class="col-lg-4 col-md-4 col-sm-4 col-xs-4" ng-repeat="point in referencePoint">
                    <div class="radio">
                      <input type="radio" name="{{point.groupid}}" ng-model="point.id" id="{{point.name}}"><label for="{{point.name}}">{{point.text}}</label>
                      &nbsp;
                      <input type="text" ng-model="submucosal" ng-if="point.name=='submucosal'" style="width: 30px;"><span ng-if="point.name=='submucosal'">CM</span>
                    </div>
                  </div>
                </div>
              </div>
              <div class="row">
                <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2 ">
                  <span>计划照射次数</span>
                </div>
                <div class="col-lg-10 col-md-10 col-sm-10 col-xs-10 ">
                  <input type="text" ng-model="times" style="width: 50%;">
                </div>
              </div>
            </div>
            <div class="row ibox-content">
              <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 col-lg-offset-8 col-md-offset-8 col-sm-offset-8 col-xs-offset-8">
                  <span>申请医生</span>
                  <img style="width: 80px;height: 40px;" ng-src="assets/images/common/def-treat-dr01.jpg">
                </div>
              </div>
              <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <div class="col-lg-10 col-md-10 col-sm-10 col-xs-12 col-lg-offset-1 col-md-offset-1 col-sm-offset-1 col-xs-offset-0">
                  <p>
                    注：1、该申请单只作首次申请使用，后续治疗如有更改无需重复填写该单，除物理师在报告上注明；<br>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2、该申请单现只适用于妇科肿瘤照射
                  </p>
                </div>
              </div>
            </div>
         </div>
        </div>
        <div class="row">
          <div class="col-lg-12">
            <div class="pull-right">
              <a href="" class="btn btn-white" ng-click="edit()"><i class="fa fa-pencil"></i> 编辑 </a>
              <a href="" class="btn btn-white" ng-click="save()"><i class="fa fa-check "></i> 保存 </a>
              <a class="btn btn-primary" print-btn><i class="fa fa-print"></i> 打印 </a>
            </div>
          </div>
        </div>
        </div>
      </div>
    </div>
  </div>
</div>
</div>
<!--<div id="btn" class="wrapper wrapper-content">
  <div class="row">
      <div class="col-lg-12">
      <div class="ibox-content" style="padding-top: 20px;padding-bottom: 50px;">
        <div class="col-sm-4 col-sm-offset-8">
            <a href="" class="btn btn-white" ng-click="edit()"><i class="fa fa-pencil"></i> 编辑 </a>
            <a href="" class="btn btn-white" ng-click="save()"><i class="fa fa-check "></i> 保存 </a>
            <a print-btn class="btn btn-primary" target="_blank"><i class="fa fa-print"></i> 打印 </a>
        </div>
      </div>
      </div>
    </div>
  </div>-->

